package com.momo.hotel.service.impl;

import com.momo.hotel.dao.mapping.TbUserMapper;
import com.momo.hotel.dao.pojo.TbUser;
import com.momo.hotel.service.HotelUserLoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HotelUserServiceImpl implements HotelUserLoginService {
    @Resource
    TbUserMapper tbUserMapper;


    @Override
    public TbUser checkLogin(TbUser tbUser) {
        return tbUserMapper.selectOne(tbUser);
    }

    @Override
    public TbUser checkRegister(TbUser tbUser) {
        return tbUserMapper.selectOne(tbUser);
    }


}
